package study;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class HelloController {

    @Autowired
    private HelloService helloService;
    @Autowired
    private HelloService2 helloService2;
    @GetMapping("/say")
    public String sayHello(){
        return helloService.sayHello();
    }

    @GetMapping("/say2")
    public String sayHello2(){
        return helloService2.sayHello();
    }

}
